package com.mayikt.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 微服务接口统一返回码
 */
@Data
@ApiModel(value = "接口统一返回数据")
public class BaseResponse {

	@ApiModelProperty(value = "响应码", name = "code")
	private Integer code;

	@ApiModelProperty(value = "消息", name = "msg")
	private String msg;

	@ApiModelProperty(value = "数据", name = "data")
	private Object data;

	public BaseResponse() {

	}

	public BaseResponse(Integer code, String msg, Object data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

}
